Question 9
select * from stud_info;
Question 10
select * from stud_info where Address='LALITPUR';
Question 11
select * from stud_info where Gender='F';
Question 12
select * from stud_info where Gender='M' And Address='KATHMANDU';
Question 13
select * from stud_info
where Address='BHAKTAPUR' OR Address='KATHMANDU' ;
Question 14
select * from stud_info where Name Like 'R%';
Question 15
select * from stud_info
where RegNo <= 77008 And RegNo >=77004;
Question 16
select * from stud_info
where name like '%A';
Question 17
select * from stud_info
where year(Dob)='2002' ;
Question 18
select * from stud_info
where year(Dob)='2003' and month(Dob)='03';
Question 19
select Regno, name,
year(sysdate())-year(Dob) AS Age from stud_info;
Question 20
select RegNo, name,
year(sysdate())-year(Dob) AS Age from stud_info
where year(sysdate())-year(Dob) <= 18 ;
Question 21
select * from stud_info
where Address='KATHMANDU' And year(Dob)='2002' ;
Question 22
select * from stud_info where name like '_A%';
Question 23
select * from stud_info
where Gender='F' and year(Dob)='2003' ;
Question 24
select *, year(sysdate())-year(Dob) AS Age from stud_info
where year(sysdate())-year(Dob) >= 19 and Gender='M' ;